<template>
  <div class="home">
    <h1>欢迎使用报告生成系统</h1>
    <p>点击上方导航栏的"生成报告"开始创建您的报告</p>
    
    <div class="download-plugin-container">
      <button class="download-plugin-button" @click="downloadPlugin">
        下载数据采集浏览器插件
      </button>
    </div>
  </div>
</template>

<script lang="ts" setup>
// 下载浏览器插件的逻辑
const downloadPlugin = () => {
  // 创建一个a标签用于下载
  const link = document.createElement('a');
  link.href = '/assets/数据采集插件.zip';
  link.download = '数据采集插件.zip';
  document.body.appendChild(link);
  link.click();
  document.body.removeChild(link);
};
</script>

<style scoped>
.home {
  text-align: center;
  padding: 20px;
}
h1 {
  margin-bottom: 20px;
}

/* 插件下载按钮样式 */
.download-plugin-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.download-plugin-button {
  background: linear-gradient(135deg, #42B883, #347474);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.download-plugin-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.download-plugin-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
</style> 